namespace ExamServer.Helpers
{
    public class UsersResourceParameters
    {
        public const int MaxPageSize=50;
        private int _pageSize=10;
        ///<summery>
        ///当前显示页
        ///</summery>
        public int PageNumber { get; set; }=1;

        ///<summery>
        ///每页显示行数 最大50行
        ///</summery>
        public int PageSize{
            get {return _pageSize;}
            set{
                _pageSize=(value>MaxPageSize)?MaxPageSize:value;
            }
        }
        ///<summary>
        /// 用户名称
        ///</summary>
        public string Name{get;set;}
        ///<summary>
        /// 电子邮件
        ///</summary>
        public string Email{get;set;}

    }
}